from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1253531385.684124
_template_filename='/home/sp4rc/Documents/Studium/Semesterarbeit/workspace/webCA/src/webca/webca/templates/boot_strap.mako'
_template_uri='boot_strap.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['header']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, '/base.mako', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'')
        # SOURCE LINE 2
        __M_writer(u' \n\n<form name="boot_strap" method="POST" action="/admin/boot_strap">\n\t\tSettings:<br>\n\t\t<input name="ca_ext_section" \tvalue="v3_ca"> Extension Section<br>\n\t\t<input name="ca_key_algo" \tvalue="rsa"> Key Algorithm to use<br>\n\t\t<input name="ca_key_size" \tvalue="2048"> Key Size <br>\n\t\t<br>\n\t\tSubject:<br>\n\t\t<input name="ca_country" \tvalue="CH"> Country<br>\n\t\t<input name="ca_state" \t\tvalue="ZH"> State<br>\n\t\t<input name="ca_location" \tvalue="Zurich"> Location<br>\n\t\t<input name="ca_organisation" \tvalue="WWF Schweiz"> Organisation<br>\n\t\t<input name="ca_organisation_unit" value="Information Technology"> Organisation Unit<br>\n\t\t<input name="ca_common_name" \tvalue="rootCA"> Common Name<br>\n\t\t<input name="ca_email" value="admin@webca.org"> Email Address<br>\n\t\t<br>\n\t\tDirectorys:<br>\n\t\t<input name="ca_certs"\t\tvalue="')
        # SOURCE LINE 20
        __M_writer(escape(c.ca_base_dir))
        __M_writer(u'" readonly> Base<br>\n\t\t<input name="ca_cert_dir"\tvalue="')
        # SOURCE LINE 21
        __M_writer(escape(c.ca_cert_dir))
        __M_writer(u'" readonly> Certificate<br>\n\t\t<input name="ca_crl_dir"\tvalue="')
        # SOURCE LINE 22
        __M_writer(escape(c.ca_crl_dir))
        __M_writer(u'" readonly> CRL<br>\n\t\t<input name="ca_database"\tvalue="')
        # SOURCE LINE 23
        __M_writer(escape(c.ca_database))
        __M_writer(u'" readonly> Database<br>\n\t\t<input name="ca_new_certs_dir"  value="')
        # SOURCE LINE 24
        __M_writer(escape(c.ca_new_certs_dir))
        __M_writer(u'" readonly> New Certtificates<br>\n\t\t<input name="ca_key_dir"\tvalue="')
        # SOURCE LINE 25
        __M_writer(escape(c.ca_key_dir))
        __M_writer(u'" readonly> Keys<br>\n\t\t<input name="ca_csr_dir"\tvalue="')
        # SOURCE LINE 26
        __M_writer(escape(c.ca_csr_dir))
        __M_writer(u'" readonly> CSR<br>\n\t\t<input name="ca_serial"\t\tvalue="')
        # SOURCE LINE 27
        __M_writer(escape(c.ca_serial))
        __M_writer(u'" readonly> Serial<br>\n\t\t<input name="ca_crlnumber"\tvalue="')
        # SOURCE LINE 28
        __M_writer(escape(c.ca_clrnumber))
        __M_writer(u'" readonly> CRL DB<br>\n\t\t<br>\n\t\t<button value="boot_strap" name="submit">Boot Strap CA</button> <button value="print_ca" name="submit">Print CA Cert</button> <button value="get_ca_cert" name="submit">Get CA Cert</button> <button value="print_ca_config" name="submit">Print CA Config</button>\n\t\t<br><br>\n</form>\nOutput:\n<b>\n<PRE>\n')
        # SOURCE LINE 36
        __M_writer(escape(c.stdout_value))
        __M_writer(u' \n</PRE>\n</b>')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_header(context):
    context.caller_stack._push_frame()
    try:
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(escape(c.title))
        return ''
    finally:
        context.caller_stack._pop_frame()


